# -*- coding: utf8 -*-
#Programa: multiplataforma.py
#Autor: Iván Viguera Cáceres
#Fecha: 08/11/2010
#Descripción:
##  

import time
import locale

locale.setlocale(locale.LC_ALL,"")
dia = raw_input('Día -d-: ')
mes = raw_input('Mes -Nombre-: ')
year = raw_input('Any -yyyy- : ')
aux = dia + ' '+mes+' '+ year

try:
    print time.strftime('%A',time.strptime(aux, "%d %B %Y"))
except Exception, e:
    print e
